for x in range(0,21):
    for y in range(0,34):
        z=100-x-y
        if 5*x+3*y+z//3==100 and z%3==0:
            print("公鸡:{} 母鸡：{} 小鸡：{}".format(x,y,100-x-y))
